<h2>Control</h2>

<p>Now that you have a car and a course, you need to able to
drive!</p>

<p>The car has two methods for forwards and backwards movement.  To
accelerate forwards, use this code:</p>

<pre>
racecar.accelerate();
</pre>

<p>This will make the car go faster than it was going before, up to
the maximum speed for the car.  Using this method repeatedly is like
holding down the gas pedal.  There is a method called "decelerate" as
well.</p>

<p>To turn, the car has two <em>methods</em>, one for left and another
for right.  Here's left:</p>

<pre>
racecar.turnLeft();
</pre>

<p>Inside of the <code>everyFrame</code> that method, you'll see
some <code>if</code> and <code>if else</code> code saying something
like:

<blockquote>"if the up key is pressed, do ... else if the down key is
pressed do ..."</blockquote>

These allow the computer to run different parts of your code "if" one
key or another is pressed.</p>

<p>See if you can guess how to fill in the rest of the code in the
if/else statements using the methods you learned above.</p>
